package com.ruoyi.project.hissystem.service.impl;

import com.ruoyi.project.hissystem.domain.HisMenu;
import com.ruoyi.project.hissystem.service.HisMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author : 杨磊
 * @date : 15:11 2021/8/19
 */
@Service
public class HisMenuServiceImpl implements HisMenuService {

    //声明mapper层属性
    @Autowired
    private  HisMenuService hisMenuService;

    /**
     * 查询菜单
     * @param menu
     * @return
     */
    @Override
    public List<HisMenu> selectMenuList(HisMenu menu) {
        return hisMenuService.selectMenuList(menu);
    }


    /**
     * 新增菜单
     * @param menu
     * @return
     */
    @Override
    public int insertMenu(HisMenu menu) {
        return hisMenuService.insertMenu(menu);
    }
}
